
const app=getApp()
Page({
  data: {
    isCalendarShow: true,
    calendarMark: {
      zc:[],
      qk:[], //缺卡
      wc:[],//外出
      jiaban:[],//加班
      chidao:[],//迟到
      qingjia:[],//请假
      chuchai:[],//出差
      kuanggong:[] , //旷工
      wu:[]
    }, //正常
    axis:[
      {
      time:'2018-2-15',
      name:'张三',
      event:'垃圾太多'
      },
      {
      time: '2018-2-15',
      name: '王三',
      event: '垃圾太多'
      },
      {
      time: '2018-2-15',
      name: '张三',
      event: '垃圾太多'
      },
      {
      time: '2018-2-15',
      name: '张三',
      event: '垃圾太多'
      },
     ]
    // mark:['2019-03-20']
  },
  
  onLoad: function () {
    var date='2020-05'
    wx.request({
      url: app.globalData.url+'/oa-applet/attendance-month-calendar',
      method:'get',
      data:{date:date},
      header:{token:wx.getStorageSync('_TOKEN')},
      success:res=>{
       
      }
    })
  },
  
  /**
   * 显示日历栏
   */
  onOpenCalendar() {
  },
  
  /**
   * 获取选择日期
   */
  onCalendarGetDate(e) {
    console.log('本次选择了:', e.detail.selected);
  },
  
})